# -*- coding:utf-8 -*-
from controllers import uimethod as mt
from controllers import uimodule as md
import memcache
import redis

settings = {
	'template_path': 'views',  # 模板路径配置
	'static_path': 'static',  # 静态文件路径配置
	'static_url_prefix': '/static/',  # 静态文件urle前缀 -配置此项后，引入时要写入该值而不是路径值（写入此值后内部会自动去路径中找）
	'ui_methods': mt,
	'ui_modules': md,
	'cookie_secret': 'aglgajglajgl',
	# 'xsrf_cookies': True,
}

# Session配置：
# Session类型>>>cache/redis/memcached
# ====================
# # memcache连接配置
# conn = memcache.Client(['192.168.42.134:12000'], debug=True)
# redis连接配置
pool = redis.ConnectionPool(host='192.168.42.134', port=6379)
conn = redis.Redis(connection_pool=pool)
# 默认连接配置
# conn = None
# Session类型
SESSION_TYPE = 'memcached'
# Session超时时间（秒）
SESSION_EXPIRES = 60


